package com.emser.unc.server.restlet;



import org.restlet.resource.ServerResource;

import com.emser.unc.serializable.SellerDTO;
import com.emser.unc.server.AppLibSeller;

public class SellerServerResource extends ServerResource implements SellerResource{

	@Override
	public SellerDTO store(SellerDTO sellerData) {
		ApplicationRestlet app = (ApplicationRestlet) getApplication();
        if (app.authenticate(getRequest(), getResponse())) {
        	return AppLibSeller.getSellerDataStore(sellerData);
        }
        else
        	return null;
	}
}
